app.service('userService',function ($http) {
    this.login=function (userName,password) {
        return $http.get("http://localhost:8081/user/login?userName="+userName+"&password="+password);
    }
});